﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Newtonsoft.Json;
using System.Web.Services;
namespace PropertyAppraisal.SystemManage
{
    public partial class DictionaryEdit : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        /// <summary>
        /// 反填字典
        /// </summary>
        /// <param name="Dictionary_Number">字典号</param>
        /// <returns></returns>
        [WebMethod]
        public static string DictionarEdit(string Dictionary_Number)
        {
            var list = new BLL.DictionaryBll().UpdateDic(Dictionary_Number);
            return JsonConvert.SerializeObject(list);
        }
        /// <summary>
        /// 修改字典执行动作
        /// </summary>
        /// <param name="Dictionary_Number">字典号</param>
        /// <param name="Dictionary_Name">字典名</param>
        /// <param name="CreatePeople">创建人</param>
        /// <returns></returns>
        [WebMethod]
        public static bool DoUpdateDic(string Dictionary_Number, string Dictionary_Name)
        {
            string UserName = HttpContext.Current.Session["UserName"].ToString();
            return new BLL.DictionaryBll().DoUpdateDic(Dictionary_Number, Dictionary_Name, UserName);
        }
    }
}